package com.yang.service.Impl;

import com.yang.mapper.RoleMapper;
import com.yang.pojo.Role;
import com.yang.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("roleService")
public class RoleServiceImpl implements RoleService {

	@Resource
	RoleMapper roleMapper;
	
	@Override
	public Role findById(Integer id) {
		return roleMapper.findById(id);
	}

	@Override
	public List<Map<String,Object>> roleList() {
		return roleMapper.roleList();
	}

}
